<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">

    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/{$page_theme | default: 'default'}/easyui.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/style/my.css">
    
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/javascript/my.js"></script>
</head> 
<body onpageshow="resetPagination('dg')">
    {datagrid id="dg" datasource="/pas/OrgService/findAll.do" view="t_org"}
    {form id="dlg" view="t_org" }
</body>
    <script>
    {literal}
    field_formatters.is_leaf=function (value, row, index){
    	if(value == 0) {
    		return "否";
    	} else {
    		return "是";
    	}
    }
    field_formatters.status=function(value,row,index){
        if(value == 0) {
            return "<font color='red'>待发布</font>";
        } else if (value == 1) {
            return "已发布"
        } else {
            return "-";
        }
    }
    {/literal}
    </script>
</html>